package com.zkthink.ceres.member.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zkthink.base.request.PageParams;
import com.zkthink.base.service.SuperService;
import com.zkthink.ceres.member.dto.MemberAddTagDTO;
import com.zkthink.ceres.member.dto.MemberPageDTO;
import com.zkthink.ceres.member.entity.Member;
import com.zkthink.ceres.member.vo.TuiguangVo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 业务接口 商城会员信息
 * </p>
 *
 * @author kellen
 * @date 2020-05-02
 */
public interface MemberService extends SuperService<Member> {

  Member findByOpenid(String openid);

  Member findById(Long id);

  IPage<Member> page(PageParams<MemberPageDTO> params);


  void addTag(MemberAddTagDTO addTagDTO);

  Member findByAccount(String account);
  Member findByphone(String phone);

  /**
   * 我的推广
   * @return
   */
  Map<String,Object> tuiguang();

  /**
   * 推广明细
   * @return
   */
  List<TuiguangVo> tuiguangDetails();

  Member selectById(Long userId);

  List<Member> selectByReferPhone(HashMap<String, Object> referPhoneMap);
}
